import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'lib-flexible'
import './assets/fonts/iconfont.css'
import './assets/css/reset.css'
import './assets/css/base.css'
import Loading from './pulgins/Loading'
import { Tabbar, TabbarItem, Icon, Swipe, SwipeItem, Grid, GridItem, PullRefresh, Toast, NavBar, GoodsAction, GoodsActionIcon, GoodsActionButton, Sku, Popup, Card, Stepper, SubmitBar, Button, Checkbox, SwipeCell, Form, Field, ContactCard, ContactList, ContactEdit, AddressEdit, AddressList, Area, Search, Empty, Lazyload } from 'vant'
Vue.use(Loading)
Vue.use(Tabbar)
  .use(TabbarItem)
  .use(Icon)
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(PullRefresh)
  .use(Toast)
  .use(NavBar)
  .use(GoodsAction)
  .use(GoodsActionIcon)
  .use(GoodsActionButton)
  .use(Sku)
  .use(Popup)
  .use(Card)
  .use(Stepper)
  .use(SubmitBar)
  .use(Button)
  .use(Checkbox)
  .use(SwipeCell)
  .use(Form)
  .use(Field)
  .use(ContactEdit)
  .use(ContactList)
  .use(ContactCard)
  .use(AddressEdit)
  .use(AddressList)
  .use(Area)
  .use(Search)
  .use(Empty)
Vue.use(Lazyload, {
  loading: require('./assets/img/timg.gif'), // 如果使用相对路径就需要使用require，不适用require就必须将图片文件放在public文件夹下，路径为/time.gif
  preload: '100%'
})
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
